-- GENERATED SPELL FOR [Undercity Champion] --


function spell0_33749(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(63010,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33749', 0, 1)
end

function spell1_33749(pUnit, Event) --@Shield-Breaker,n/a--
pUnit:FullCastSpellOnTarget(65147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33749', 250, 1)
end

function Sorts_33749(pUnit, Event)
local choix_sorts_33749 = math.random(0, 1)
if choix_sorts_33749 == 0 then
pUnit:RegisterEvent('spell0_33749', 1, 1)
end
if choix_sorts_33749 == 1 then
pUnit:RegisterEvent('spell1_33749', 1, 1)
end
end

function mob33749_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33749', math.random(1500, 3000), 1)
end

function mob33749_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33749_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33749_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33749, 1, 'mob33749_Action')
RegisterUnitEvent(33749, 2, 'mob33749_Leave')
RegisterUnitEvent(33749, 3, 'mob33749_Kill')
RegisterUnitEvent(33749, 4, 'mob33749_Die')
